package com.ruoyi.quartz.task;

import com.ruoyi.quartz.service.EmailService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author 15982
 */
@Component("email")
public class Email {

    @Resource
    private EmailService emailService;

    public void sendEmail(String name) {
        emailService.sendEmail(name);
    }
}
